package com.book.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.sun.org.apache.xerces.internal.impl.dv.xs.MonthDV;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author fk
 * @since 2023-10-12 19:54:27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("monthly_pass")
public class MonthlyPass extends MonthlyRanking implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("book_id")
    private Long bookId;

    @TableField("reader_id")
    private Long readerId;

    @TableField("monthly_come")
    private Integer monthlyCome;

    @TableField(value = "date",fill = FieldFill.INSERT)
    private Date date;

    @TableField("monthy_go")
    private Integer monthyGo;

    @TableField("monthly_num")
    private String monthlyNum;


    public static final String ID = "id";

    public static final String BOOK_ID = "book_id";

    public static final String READER_ID = "reader_id";

    public static final String MONTHLY_COME = "monthly_come";

    public static final String DATE = "date";

    public static final String MONTHY_GO = "monthy_go";

    public static final String MONTHLY_NUM = "monthly_num";

}
